package com.weixin.paleituo.bean;

import android.text.TextUtils;

import java.io.Serializable;

/**
 * 共享家商品预览
 *
 * @author fengzhen
 * @version v1.0, 2018/4/5
 */
public class TemplateGoods implements Serializable {

    /**
     * id : 911
     * storeId : 91
     * storeName : 鼎高家居
     * goodsName : A家 欧式沙发 法式皮沙发实木框架大小户组合贵妃转角客厅奢华雕花家具 美式沙发 天蓝色 三人位+右贵妃位
     * listUrl : http://p35r91t1w.bkt.clouddn.com/upload/goods_list_img/2caa955e-4010-4fb9-a13c-cf1e044156ea.jpg
     * price : 4899
     * coupon : 5
     * specinfo : 颜色:香槟金    配置:三人位+左贵妃位
     * specialSales : VIP价格
     */

    private int id;
    private int storeId;
    private String storeName;
    private String goodsName;
    private String listUrl;
    private String price;
    private String specialSales;
    private int coupon;
    private String specinfo;
    private int num;

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public double getSpecialSales() {
        return TextUtils.isEmpty(specialSales) ? 0 : Double.valueOf(specialSales);
    }

    public void setSpecialSales(String specialSales) {
        this.specialSales = specialSales;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getStoreId() {
        return storeId;
    }

    public void setStoreId(int storeId) {
        this.storeId = storeId;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getListUrl() {
        return listUrl;
    }

    public void setListUrl(String listUrl) {
        this.listUrl = listUrl;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public int getCoupon() {
        return coupon;
    }

    public void setCoupon(int coupon) {
        this.coupon = coupon;
    }

    public String getSpecinfo() {
        return specinfo;
    }

    public void setSpecinfo(String specinfo) {
        this.specinfo = specinfo;
    }
}
